/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/12/2022 11:46:32 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include "IProduct.h"
#include "IFactory.h"
#include "FactoryA.h"
#include "FactoryB.h"

int main() {
    IFactory* factoryA = new FactoryA();
    IProduct* productA = factoryA->ConcreteProduct();
    productA->use();
    //
    IFactory* factoryB = new FactoryB();
    IProduct* productB = factoryB->ConcreteProduct();
    productB->use();
    delete factoryA;
    delete factoryB;
    //delete
    delete productA;
    delete productB;
    return 0;
}
